function p = predictOneVsAll(all_theta, X)
    %   The number of the training examples
    m = size(X, 1);
    %   The number of the labels
    num_labels = size(all_theta, 1);
    %   Add one column of ones to the data
    X = [ones(m, 1) X];
    %   Get the max of every row
    [dummy, p] = max((X * all_theta'), [], 2);
end
